package ws.rest.check.manager;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import ws.rest.books.impl.BookServiceImpl;
import ws.rest.check.manager.CheckContoller;


public class WebApp extends Application{
	private Set<Object> svc_singletons = new HashSet<Object>();
	
	private Set<Class<?>> svc_classes = new HashSet<Class<?>>();

	public WebApp(){
		svc_singletons.add(BookServiceImpl.getInstance());
		svc_singletons.add(CheckContoller.getInstance());
	}
	
	@Override
	public Set<Object> getSingletons(){
		return svc_singletons;
	}
	
	@Override
	public Set<Class<?>> getClasses(){
		return svc_classes;
	}
}
